package com.cn.demo4.service;

import com.cn.demo4.model.NavModel;
import com.cn.demo4.model.NewsModel;

import java.util.List;

public interface INewsService {

    List<NewsModel> findAll(NewsModel newsModel);

    String add(NewsModel newsModel);

    NewsModel findById(Integer id);

    String update(NewsModel newsModel);

    int del(Integer id);

    List<NewsModel> getNewsModelListForHome();

    int getCount(NewsModel newsModel);
}
